/*
 * @Author: 黑白灰01 3193273703@qq.com
 * @Date: 2025-09-01 10:25:48
 * @LastEditors: 黑白灰01 3193273703@qq.com
 * @LastEditTime: 2025-09-01 10:39:17
 * @FilePath: /hei-oa/src/utils/encrypt.service.ts
 * @Description: 加密工具
 */
import * as bcrypt from 'bcrypt';
import { Injectable } from '@nestjs/common';

@Injectable()
export class EncryptService {
  encrypt(password: string) {
    // !!加密难度性，需修改此处
    return bcrypt.hash(password, 12);
  }
}
